package com.shop.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value = "user")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "user_openId")
    private String openId;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "user_phone")
    private Long userPhone;
    @TableField(value = "user_sex")
    private String userSex;
    @TableField(value = "user_idNumber")
    private String userIdNumber;
    @TableField(value = "user_avatar")
    private String userAvatar;
    @TableField(value = "create_time")
    private String createTime;
    @TableField(value = "is_delete")
    private Integer isDelete;
}
